﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ClassLibrary.DAO;

public partial class Admin_ucControl_ucListNDLaiThuXe : System.Web.UI.UserControl
{
    TblNoiDungLaiXeThuDAO ndDAO = new TblNoiDungLaiXeThuDAO(Global.CONNECTION_STRING);

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            loadND();
        }
    }

    private void loadND()
    {
        grdNDLaiThuXE.DataSource = ndDAO.GetALL();
        grdNDLaiThuXE.DataBind();
    }
}